import request from '@/utils/request'

// 查询用户排名表列表
export function listAppRankUser(query) {
  return request({
    url: '/applet/appRankUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户排名表详细
export function getAppRankUser(id) {
  return request({
    url: '/applet/appRankUser/' + id,
    method: 'get'
  })
}

// 新增用户排名表
export function addAppRankUser(data) {
  return request({
    url: '/applet/appRankUser',
    method: 'post',
    data: data
  })
}

// 修改用户排名表
export function updateAppRankUser(data) {
  return request({
    url: '/applet/appRankUser',
    method: 'put',
    data: data
  })
}

// 删除用户排名表
export function delAppRankUser(id) {
  return request({
    url: '/applet/appRankUser/' + id,
    method: 'delete'
  })
}
